process.env.NODE_ENV = 'production'
if (!process.env.BUILD) process.env.BUILD = 'publish'

var webpack = require('webpack')
var webpackConfig = require('./webpack.config')

webpack(webpackConfig, function (err, stats) {

  if (err) throw err
  process.stdout.write(stats.toString({
    colors: true,
    modules: false,
    children: false,
    chunks: false,
    chunkModules: false
  }) + '\n\n')

})
